package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotBlank;

/**
 * 微信小程序配置
 *
 * @author ruoyi
 */
@Component
@Validated
@ConfigurationProperties(prefix = "wx.miniapp")
public class WxMiniProgramConfig
{
    /** 小程序appId */
    @NotBlank(message = "小程序appId不能为空")
    private String appId;

    /** 小程序appSecret */
    @NotBlank(message = "小程序appSecret不能为空")
    private String appSecret;

    /** 小程序消息推送token */
    private String token;

    /** 小程序消息推送aesKey */
    private String aesKey;

    /** 小程序消息推送URL */
    private String msgUrl;

    public String getAppId()
    {
        return appId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getAppSecret()
    {
        return appSecret;
    }

    public void setAppSecret(String appSecret)
    {
        this.appSecret = appSecret;
    }

    public String getToken()
    {
        return token;
    }

    public void setToken(String token)
    {
        this.token = token;
    }

    public String getAesKey()
    {
        return aesKey;
    }

    public void setAesKey(String aesKey)
    {
        this.aesKey = aesKey;
    }

    public String getMsgUrl()
    {
        return msgUrl;
    }

    public void setMsgUrl(String msgUrl)
    {
        this.msgUrl = msgUrl;
    }
}